package net.tngou.lucene;

import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;



public class Config {


	private static Config  CONFIG= null;
	
	/**
	 * 单例方法
	 * @return
	 */
	public final static Config getInstance (){
		
		if(CONFIG!=null) return CONFIG;
		Config conf = new Config();
		conf.setPath(System.getProperty("user.dir"));
		conf.setTable("defaults");
		conf.setSize(100);
		return conf;
		
	}
	
	private Config()
	{
		
	}
	private String path; //数据存储地址
	private int size; //大小
	private String table;//默认表名
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	
	
	
	

}
